﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="TestWeb.WebForm.Index" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table>
                <tr>
                    <td>
                        <textarea id="TextAreaRequest1" cols="100" rows="4" runat="server">api/values</textarea><br />
                        <asp:Button ID="Button1" runat="server" Text="Get 方式请求列表" OnClick="Button1_Click" /><br />
                        <textarea id="TextArea1" cols="100" rows="10" runat="server"></textarea>
                        <br />
                        <br />
                    </td>
                    <td>
                        <textarea id="TextAreaRequest2" cols="100" rows="4" runat="server"> api/values/2</textarea><br />
                        <asp:Button ID="Button2" runat="server" Text="Get 方式请求id对应的数据" OnClick="Button2_Click" /><br />
                        <textarea id="TextArea2" cols="100" rows="10" runat="server"></textarea>
                        <br />
                        <br />
                    </td>
                </tr>
                <tr>
                    <td>
                        <textarea id="TextAreaRequest3" cols="100" rows="1" runat="server">api/values/2</textarea><br />
                       <textarea id="TextAreaRequest6" cols="100" rows="2" runat="server">{"Id":123,"Age":12,"UserInfo":"111"}</textarea><br />
                        <asp:Button ID="Button3" runat="server" Text="Post 方式 添加数据" OnClick="Button3_Click" /><br />
                        <textarea id="TextArea3" cols="100" rows="10" runat="server"></textarea>
                        <br />
                        <br />
                    </td>
                    <td>
                       <textarea id="TextAreaRequest4" cols="100" rows="4" runat="server">api/values/2</textarea><br />
                        <asp:Button ID="Button4" runat="server" Text="删除" OnClick="Button4_Click" /><br />
                        <textarea id="TextArea4" cols="100" rows="10" runat="server"></textarea>
                        <br />
                        <br />
                    </td>
                </tr>
                <tr>
                    <td>
                        <textarea id="TextAreaRequest5" cols="100" rows="1" runat="server">api/values/123</textarea><br />
                         <textarea id="TextAreaRequest7" cols="100" rows="2" runat="server">{"Id":123,"Age":12,"UserInfo":"111"}</textarea><br />
                        <asp:Button ID="Button5" runat="server" Text="修改" OnClick="Button5_Click" /><br />
                        <textarea id="TextArea5" cols="100" rows="10" runat="server"></textarea>
                        <br />
                        <br />
                    </td>
                    <td></td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
